HAL SDRAM IRQ handler and callbacks functions migration ¶
This section provides information about the HAL SDRAM control functions migration.
HAL SDRAM unregister, register and DMA callbacks ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_SDRAM_UnRegisterCallback();
HAL_SDRAM_RegisterDmaCallback();
HAL_SDRAM_DMA_XferCpltCallback();
HAL_SDRAM_DMA_XferErrorCallback();
|
Removed: No specific configuration or handling needed. No more Read/write APIs use in HAL SDRAM driver. |
Related concepts: Other HAL SDRAM changes
HAL SDRAM register callback ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_SDRAM_RegisterCallback(&hsdram, HAL_SDRAM_REFRESH_ERR_CB_ID);
// Other callbacks are removed
|
HAL_SDRAM_RegisterRefreshErrorCallback(&hsdram);
Note The register callback existe only for “RefreshError”. |
Related concepts: Other HAL SDRAM changes
HAL SDRAM refresh error callback ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_SDRAM_RefreshErrorCallback();
|
HAL_SDRAM_RefreshErrorCallback();
|
HAL SDRAM handles SDRAM interrupts ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_SDRAM_IRQHandler();
|
HAL_SDRAM_IRQHandler();
|